package edu.gmu.projects.fireresponder.gui;

import android.app.Activity;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.widget.TextView;

public class NotificationsListItemActivity  extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(android.R.layout.simple_list_item_1);

		Bundle bundle = getIntent().getExtras();

		if (bundle != null) {
			String text = bundle.getString(NotificationsList.MESSAGE_BODY);

			TextView textview = (TextView) findViewById(android.R.id.text1);
			textview.setMovementMethod(new ScrollingMovementMethod());
			textview.setText(text);			
		}
	}

}
